package com.sjt;

/**
 * 跳表当中的结点
 */
public class SkipListNode {
    //结点的数据域
    int val;
    //结点的层级
    int level;
    //记录结点每一层级的后驱结点
    SkipListNode[] next;

    public SkipListNode(int val, int level) {
        this.val = val;
        this.level = level;
        //根据层级定义固定大小后驱数组
        this.next = new SkipListNode[level];
    }
}
